package cn.java79.quiz.dao;

import cn.java79.quiz.entity.Questions;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface QuestionsMapper {

    //根据知识点随机获得一题
    //qid存放最近做过的
    public Questions randomSel(@Param("skillid") long skillid, @Param("qids") long[] qids);

    List<Questions> search(@Param("title") String title, @Param("sectionName") String sectionName);

    int delete(Long id);

    int insert(Questions record);



    Questions get(Long id);

    int update(Questions record);

    Questions getAnswer(long qid);
}